package lk.icta.mobile;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author Kusal Samarakoon
 */

public class MobileMapViewServlet extends HttpServlet {

    private static final Logger logger = LoggerFactory.getLogger(MobileMapViewServlet.class);

    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        doGet(request, response);
    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        logger.debug("Mobile Map View Start...");

        /*String latlan = request.getParameter("latlan");
        String middle = request.getParameter("middle");
        String refNo = request.getParameter("refNo");

        logger.debug("latlan {}",latlan);
       logger.debug("middle {}",middle);
       logger.debug("refNo {}",refNo);*/

        RequestDispatcher RequetsDispatcherObj = request.getRequestDispatcher("/WEB-INF/pages/mobileMapView.jsp");
        RequetsDispatcherObj.forward(request, response);
    }
}
